package app;

import java.io.File;

import javax.mail.MessagingException;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import spring.mai.imp.SpringMailSender;

public class Main {
	public static void main(String[] args) {
		//System.out.println(args[0]);

		ApplicationContext  ctx = new ClassPathXmlApplicationContext("spring.xml");
	
			SpringMailSender sms = ctx.getBean("mailSender",SpringMailSender.class);
			
				try {
					sms.richContentSend();
		} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			
	}
}
